/*
 * File Name:               WindowDemoMain.cs
 *
 * Description:             普通类
 * Author:                  lisiyu <576603306@qq.com>
 * Create Date:             2016/11/23
 */

public class DemoMainWindow : UIWindow
{
    private UIContext mContextUsage;
    private UIContext mContextCareful;

    protected override void onCacheComponents()
    {
        mContextUsage = getComponent<UIContext>(0);
        mContextCareful = getComponent<UIContext>(1);
    }

    protected override void onClearComponents()
    {
        mContextUsage = null;
        mContextCareful = null;
    }

    protected override void onAddListeners()
    {
    }

    protected override void onRemoveListeners()
    {
    }

    protected override void onOpen(object args)
    {
        showView<DemoMainUsageView>(mContextUsage, this);
    }

    protected override void onClose()
    {
    }
}